cpdef search(object v, object x) noexcept